#ifndef IMAGEBROWSER_IMAGEBROWSER_H
#define IMAGEBROWSER_IMAGEBROWSER_H

#include <QWidget>
#include <QResizeEvent>

namespace ImageBrowser {

namespace Ui {
class ImageBrowser;
}

class ImageBrowser : public QWidget
{
    Q_OBJECT

public:
    explicit ImageBrowser(QWidget *parent = 0);
    ~ImageBrowser();
    void setPixmap(const QPixmap &pixmap);

protected:
    void resizeEvent(QResizeEvent* event);

private slots:
    void openButtonClicked();
    void originalSizeButtonClicked(bool checked);
    void zoomInButtonClicked();
    void zoomOutButtonClicked();
    void clockwise90ButtonClicked();
    void anticlockwise90ButtonClicked();
    void slotPercentageChanged(double percentage);

private:
    Ui::ImageBrowser *ui;
    QPixmap m_pixmap;
};


} // namespace ImageBrowser
#endif // IMAGEBROWSER_IMAGEBROWSER_H
